FROM alpine

RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone

RUN wget https://curl.haxx.se/ca/cacert.pem -O /etc/ssl/certs/ca-certificates.crt

COPY . /app

RUN chmod +x /app/prometheus-webhook-dingtalk

CMD [ "/app/prometheus-webhook-dingtalk", "--config.file=/app/configs/config.example.yml"]
